package com.xiaoyu.lingdian.vo;

import java.util.List;

import com.xiaoyu.lingdian.entity.CoreAttachment;
import com.xiaoyu.lingdian.entity.CorePartner;
import com.xiaoyu.lingdian.vo.BaseVO;
import com.xiaoyu.lingdian.tool.DateUtil;

public class CorePartnerVO implements BaseVO {

	/**
	*标识UUID
	*/
	private String crprrUuid;

	/**
	*名称
	*/
	private String crprrName;

	/**
	*内容
	*/
	private String crprrCode;

	/**
	*创建日期
	*/
	private String crprrCdate;

	/**
	*修改日期
	*/
	private String crprrUdate;
	
	/**
	*附件详情
	*/
	private List<CoreAttachment> list;

	public void setCrprrUuid(String crprrUuid) {
		this.crprrUuid = crprrUuid;
	}

	public String getCrprrUuid( ) {
		return crprrUuid;
	}

	public void setCrprrName(String crprrName) {
		this.crprrName = crprrName;
	}

	public String getCrprrName( ) {
		return crprrName;
	}

	public void setCrprrCode(String crprrCode) {
		this.crprrCode = crprrCode;
	}

	public String getCrprrCode( ) {
		return crprrCode;
	}

	public void setCrprrCdate(String crprrCdate) {
		this.crprrCdate = crprrCdate;
	}

	public String getCrprrCdate( ) {
		return crprrCdate;
	}

	public void setCrprrUdate(String crprrUdate) {
		this.crprrUdate = crprrUdate;
	}

	public String getCrprrUdate( ) {
		return crprrUdate;
	}

	public List<CoreAttachment> getList() {
		return list;
	}

	public void setList(List<CoreAttachment> list) {
		this.list = list;
	}

	public CorePartnerVO( ) { 
	}

	@Override
	public void convertPOToVO(Object poObj) {
		if (null == poObj) {
			return;
		}

		CorePartner po = (CorePartner) poObj;
		this.crprrUuid = po.getCrprrUuid();
		this.crprrName = po.getCrprrName();
		this.crprrCode = po.getCrprrCode();
		this.crprrCdate = po.getCrprrCdate()!=null?DateUtil.formatTimesTampDate(po.getCrprrCdate()):"";
		this.crprrUdate = po.getCrprrUdate()!=null?DateUtil.formatTimesTampDate(po.getCrprrUdate()):"";
	}
//<=================定制内容开始==============
//==================定制内容结束==============>

}